<?php
/**
 * @package PHPKit.
 * @author: mawenpei
 * @date: 2016/11/25
 * @time: 17:31
 */

use HuoKit\JobMan\Handler\IWorker;
use Psr\Log\LoggerInterface;
class demoWorker implements IWorker
{
    protected $logger;
    public function execute($data)
    {
        $this->logger->info('demoWorker execute success');
    }

    public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
    }
}